{extend name='main'}

{block name="button"}
{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='images/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='text-center'>序号</th>
            <th class='text-center'>进店头像</th>
            <th class='text-center'>设备ID</th>
            <th class='text-center'>通道ID</th>
            <th class='text-center'>备注</th>
            <th class='text-center'>店铺</th>
            <th class='text-center'>添加时间</th>
<!--            <th class='text-center' width="100px">操作</th>-->
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {volist name="list" id="vo" key='key'}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='' type='checkbox'></label>
            </td>
            <td class='text-center'>{$vo.id|default=''}</td>
            <td class='text-center'><img data-tips-image="" src="{$vo['photo']|default='-'}" width="60px" height="60px"/></td>
            <td class='text-center'>{$vo['equipment_id']|default='-'}</td>
            <td class='text-center'>{$vo['channel_id']|default='-'}</td>
            <td class='text-center'>{$vo['remarks']|default='-'}</td>
            <td class='text-center'>{$vo['shop_name']|default='-'}</td>
            <td class='text-center'>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<!--            <td class='text-center'>-->
<!--                &lt;!&ndash;{if auth("switch")}&ndash;&gt;-->
<!--                <a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="确定要取消白名单吗?"-->
<!--                   data-action="{:url('switch')}?status={$vo.status}" data-value="id#{$vo.id}" data-csrf="{:systoken('switch')}">取消白名单</a>-->
<!--                &lt;!&ndash;{/if}&ndash;&gt;-->
<!--            </td>-->
        </tr>
        {/volist}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}